cmake_minimum_required(VERSION 3.12)
project(C___Project_New)

set(CMAKE_CXX_STANDARD 14)

# 遍历项目根目录下所有的 .cpp 文件
file (GLOB_RECURSE files *.cpp)
foreach (file ${files})
    string(REGEX REPLACE ".+/(.+)\\..*" "\\1" exe ${file})
    add_executable (${exe} ${file} leetcode/6130/NumberContainers.cpp leetcode/6130/NumberContainers1.cpp Base/MyPriorityQueue/priqueue.cpp leetcode/2368/Solution.cpp)
    message (\ \ \ \ --\ src/${exe}.cpp\ will\ be\ compiled\ to\ bin/${exe})
endforeach ()
